import { AbstractSearchArgument } from '../../global'
import { CONDITION_TYPE } from '@/utils/constants'

const SEARCH_CONDITION = [
  {
    name: 'itemName',
    title: '项目名称',
    placeholder: '支持模糊查询',
    type: CONDITION_TYPE.TEXT,
    value: '',
    visible: true
  },
  {
    name: 'contacts',
    title: '联系人姓名',
    placeholder: '请填写完整姓名',
    type: CONDITION_TYPE.TEXT,
    value: '',
    visible: true
  },
  {
    name: 'mobile',
    title: '联系人电话',
    placeholder: '请填写完整电话',
    type: CONDITION_TYPE.TEXT,
    value: '',
    visible: true
  },
  {
    name: 'qq ',
    title: '联系人QQ',
    placeholder: '请填写完整QQ',
    type: CONDITION_TYPE.TEXT,
    value: '',
    visible: true
  }
]

class SearchArgument extends AbstractSearchArgument {
  constructor () {
    super()
    this.itemName = ''
    this.contacts = ''
    this.mobile = ''
    this.qq = ''
  }
}

export {
  SEARCH_CONDITION,
  SearchArgument
}
